package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-业务订单
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_order_info")
@ApiModel(value = "ErpOrderInfo对象", description = "ERP系统-业务订单")
public class ErpOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("业务类型 1-共享电单车电池租赁充电 2-共享电单车整合运营 3-C端租换电 4-其他业务 5-满电金服")
    private Integer businessType;

    @ApiModelProperty("关联合同台帐ID")
    private Integer contractId;

    @ApiModelProperty("服务品牌")
    private String operateBrand;

    @ApiModelProperty("运营城市")
    private String operateCity;

    @ApiModelProperty("合同总金额（业务类型 1、3、4 填写）")
    private BigDecimal contractAllMoney;

    @ApiModelProperty("签约订单电池数量（组）（业务类型 1、3、4 填写）")
    private Integer batteryAmount;

    @ApiModelProperty("保证金（业务类型 1、3、4 填写，业务类型1改名为累计押金）")
    private BigDecimal deposit;

    @ApiModelProperty("保证金到账日期（业务类型 1、3、4 填写，业务类型1改名为押金到账日期）")
    private Date depositPayTime;

    @ApiModelProperty("业务对接人ID")
    private Integer businessUser;

    @ApiModelProperty("业务对接人姓名")
    private String businessName;

    @ApiModelProperty("扩展字段数据，json格式")
    private String fieldData;

    @ApiModelProperty("审批状态 1-拟制中 2-审批中 3-审批完成 4-审批失败 5-作废")
    private Integer approveStatus;

    @ApiModelProperty("状态说明")
    private String approveMessage;

    @ApiModelProperty("审批完成时间")
    private Date approveCompleteTime;

    @ApiModelProperty("流程审批实例ID")
    private Integer osInstanceId;

    @ApiModelProperty("订单状态 0-等待审批 1-已确认 2-待付款 3-备货中 4-发货中 5-订单完成")
    private Integer orderStatus;

    @ApiModelProperty("订单完成时间")
    private Date completeTime;

    @ApiModelProperty("发货次数")
    private Integer deliverAmount;

    @ApiModelProperty("最新发货记录ID")
    private Integer lastDeliverId;

    @ApiModelProperty("开票次数")
    private Integer invoiceAmount;

    @ApiModelProperty("最新开票记录ID")
    private Integer lastInvoiceId;

    @ApiModelProperty("创建人")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
